home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-06-27 | 2.5 KB | 66 lines | [TEXT/????] |
- Morse Documentation (26-Jun-88)
- ===================
-
- This archive contains some code resources, all related to a simple
- Morse code generating routine. Everything was written in "LightspeedC"
- 2.15, and if anyone wants the source code he should call me (LX1YZ @
- LX0PAC or CIS 73720,2200). The programs were developed and tested on a
- Macintosh Plus with 1 MB of memory, running System 4.3 and Finder 6.0
- (or MultiFinder 1.0).
-
- The Morse code is generated by the Macintosh speaker. There are four
- parameters to set up:
-
- 1. The character string. Those characters are sent in Morse code.
-
- 2. The frequency. E.g. 750 Hz sounds good.
-
- 3. The volume. Choose a value between 0 and 255. 255 is loudest. The
- exact volume depends also on the setting of the overall volume set up
- in the General part of the Control Panel.
-
- 4. The length of each dot in 1/60 seconds. My preferred speed while on
- the air is 3, giving a dot length of 50 ms. Figure out by yourself what
- that means in words per minute.
-
- The three files are:
-
- "Morse CDEV"
-
- This is a 'cdev' file, meaning that it can be used by the Control Panel
- desk accessory (I think you must have System version 4.1 or later). Put
- it into your system folder, and select it while running the Control
- Panel. You can set up the parameters by clicking on their respective
- boxes (by the way if anyone knows how to program a 'cdev' with
- "editText" fields that does not screw up the Control Panel he should
- send me the trick). Try it out by clicking on my head. There is also an
- 'INIT' resource in this file, so each time you start up your system you
- will hear in Morse code the character string you have chosen. Very
- useful, isn't it?
-
- "Morse FKEY"
-
- This is a 'FKEY' resource you can put into your System file, with
- "ResEdit". It simply generates its resource name (you can modify the
- name with "ResEdit") in Morse code, if activated (Command-Shift-Digit).
- If necessary renumber it with "ResEdit". Choose a number between 1 and
- 9, not yet used by another 'FKEY'. Again this is a very useful feature
- available in any application.
-
- "Morse XCMD"
-
- This is an external command for "HyperCard". Use "ResEdit" or "ResCopy"
- to copy it into your stack, into the home stack, or into "HyperCard"
- itself. In your HyperTalk script you can then call it like this:
-
- Morse string,frequency,volume,dotlength
- Morse string
-
- The second form uses the default values of 750 Hz, volume 32 and dot
- length 3. Some examples (try them out in the message box):
-
- Morse "73 de lx1yz",1000,255,2
- Morse UserName
-
- Again this wonderful feature will give more value to your stacks.
-